package com.sky.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sky.entity.NonheritageImg;
import com.sky.service.NonheritageImgService;
import com.sky.mapper.NonheritageImgMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 32603
* @description 针对表【nonheritage_img(非遗项目图片表)】的数据库操作Service实现
* @createDate 2024-09-28 17:57:08
*/
@Service
public class NonheritageImgServiceImpl extends ServiceImpl<NonheritageImgMapper, NonheritageImg>
    implements NonheritageImgService{

    @Autowired
    private NonheritageImgMapper nonheritageImgMapper;

    @Override
    public List<NonheritageImg> getByNonheritage(Integer id) {
        return  nonheritageImgMapper.selectList(
                new QueryWrapper<NonheritageImg>().eq("nonheritage_id", id));
    }
}




